// import Vue from "vue";
import Vuex from "vuex";
import sgb from "./modules/sgb";
import getters from "./getter";
import msg from "./modules/msg";
import version from "./modules/version";
import lang from "./modules/lang";
import progress from "./modules/progress";
import audio from "./modules/aduio";
import bottomlist from "./modules/bottomlist";
import login from "./modules/login.js";
import collector from "./modules/collector.js";
// Vue.use(Vuex);
const store = new Vuex.Store({
  state: {
    imgUrl: "https://picsum.photos",
  },
  getters,
  modules: {
    sgb,
    msg,
    version,
    lang,
    progress,
    audio,
    bottomlist,
    login,
    collector,
  },
  mutations: {
    setLyricBtn: (state, val) => {
      state.audio.settingLyricBtnShow = val;
    },
  },
});
export default store;
